package com.yao.spider.shanghai.bean;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

public class FastMail {
    private Integer id;
    private String failInfo;
    @JSONField(name = "APP_TYPE")
    private String appType;
    @JSONField(name = "BIG_SOURCE")
    private String bigSource;
    @JSONField(name = "COUNT")
    private Integer count;
    @JSONField(name = "DATA_SOURCE")
    private String dataSource;
    @JSONField(name = "name")
    private String name;
    @JSONField(name = "FIRST_TIME")
    private Long firstTimeL;
    private Date firstTime;
    @JSONField(name = "IDENTITY_TYPE")
    private String identityType;
    @JSONField(name = "IDENTITY_VALUE")
    private String identityValue;
    @JSONField(name = "LAST_TIME")
    private Long lastTimeL;
    private Date lastTime;
    @JSONField(name = "MRG_ID")
    private String mrgId;
    @JSONField(name = "SRC_ADDRESS")
    private String srcAddress;
    @JSONField(name = "SRC_ID")
    private String srcId;
    @JSONField(name = "TABLE_SOURCE")
    private String tableSource;

    public Long getFirstTimeL() {
        return firstTimeL;
    }

    public void setFirstTimeL(Long firstTimeL) {
        this.firstTimeL = firstTimeL;
    }

    public Long getLastTimeL() {
        return lastTimeL;
    }

    public void setLastTimeL(Long lastTimeL) {
        this.lastTimeL = lastTimeL;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFailInfo() {
        return failInfo;
    }

    public void setFailInfo(String failInfo) {
        this.failInfo = failInfo == null ? null : failInfo.trim();
    }

    public String getAppType() {
        return appType;
    }

    public void setAppType(String appType) {
        this.appType = appType == null ? null : appType.trim();
    }

    public String getBigSource() {
        return bigSource;
    }

    public void setBigSource(String bigSource) {
        this.bigSource = bigSource == null ? null : bigSource.trim();
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getDataSource() {
        return dataSource;
    }

    public void setDataSource(String dataSource) {
        this.dataSource = dataSource == null ? null : dataSource.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Date getFirstTime() {
        if (getFirstTimeL() != null) {
            return new Date(getFirstTimeL() * 1000);
        }
        return null;
    }

    public void setFirstTime(Date firstTime) {
        this.firstTime = firstTime;
    }

    public String getIdentityType() {
        return identityType;
    }

    public void setIdentityType(String identityType) {
        this.identityType = identityType == null ? null : identityType.trim();
    }

    public String getIdentityValue() {
        return identityValue;
    }

    public void setIdentityValue(String identityValue) {
        this.identityValue = identityValue == null ? null : identityValue.trim();
    }

    public Date getLastTime() {
        if (getLastTimeL() != null) {
            return new Date(getLastTimeL() * 1000);
        }
        return null;
    }

    public void setLastTime(Date lastTime) {
        this.lastTime = lastTime;
    }

    public String getMrgId() {
        return mrgId;
    }

    public void setMrgId(String mrgId) {
        this.mrgId = mrgId == null ? null : mrgId.trim();
    }

    public String getSrcAddress() {
        return srcAddress;
    }

    public void setSrcAddress(String srcAddress) {
        this.srcAddress = srcAddress == null ? null : srcAddress.trim();
    }

    public String getSrcId() {
        return srcId;
    }

    public void setSrcId(String srcId) {
        this.srcId = srcId == null ? null : srcId.trim();
    }

    public String getTableSource() {
        return tableSource;
    }

    public void setTableSource(String tableSource) {
        this.tableSource = tableSource == null ? null : tableSource.trim();
    }
}